﻿<Page x:Class="Majesty_of_Omega.GUI.Pages.TestPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TestPage" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="292" d:DesignHeight="221" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:System="clr-namespace:System;assembly=mscorlib">
    <Page.Resources>
        <Style x:Key="TestContainerStyle" TargetType="{x:Type ListViewItem}">
            <Setter Property="Background" Value="#FF84A9F9" />
            <Style.Triggers>
                <Trigger Property="IsSelected" Value="true">
                    <Setter Property="Background">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFFC704" Offset="0.986"/>
                                <GradientStop Color="#FFF4E057" Offset="0.5"/>
                                <GradientStop Color="#FFF4E057" Offset="0.51"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                </Trigger>
                <Trigger Property="IsFocused" Value="true">
                    <Setter Property="Background">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFFC704" Offset="0.986"/>
                                <GradientStop Color="#FFF4E057" Offset="0.5"/>
                                <GradientStop Color="#FFF4E057" Offset="0.51"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                </Trigger>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter Property="Foreground" Value="DarkBlue" />
                    <Setter Property="Background">
                        <Setter.Value>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFFC704" Offset="0.986"/>
                                <GradientStop Color="#FFF4E057" Offset="0.5"/>
                                <GradientStop Color="#FFF4E057" Offset="0.51"/>
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
    </Page.Resources>
    <Grid Width="292" Height="221">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.647*"/>
            <RowDefinition Height="0.353*"/>
        </Grid.RowDefinitions>
        <ListView SelectedIndex="0" IsSynchronizedWithCurrentItem="True" Grid.RowSpan="1" Grid.Column="1" ItemContainerStyle="{StaticResource TestContainerStyle}" >
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="a" />
                    <GridViewColumn Header="b"/>
                    <GridViewColumn Header="c"/>
                    <GridViewColumn Header="d"/>
                </GridView>
            </ListView.View>
            <System:String>Zeichenfolge</System:String>
            <System:String>2343</System:String>
        </ListView>
        <TextBox VerticalAlignment="Center" Height="21" Text="TextBox" TextWrapping="Wrap" Grid.Row="1"/>
    </Grid>
</Page>
